<div class="ciuusers view">
<?php $url=$this->Html->link('Estudiantes',array('action' => 'indexstudent')); ?>
		<?php  $tokens=array(0=>$url, 1=>"Información") ?>
        <?php echo $this->element("breadcrumb", array('tokens'=>$tokens))?>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $ciuuser['Ciuuser']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Nombre'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $ciuuser['Ciuuser']['last_names'] .", ". $ciuuser['Ciuuser']['first_names']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Documento'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $ciuuser['Ciuuser']['document_type']. " " . $ciuuser['Ciuuser']['document']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Address'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $ciuuser['Ciuuser']['address']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Telephone'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $ciuuser['Ciuuser']['telephone']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Email'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $ciuuser['Ciuuser']['email']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Ciuuserstate'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $ciuuser['Ciuuserstate']['name'] ; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Academic Level'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $ciuuser['Ciuuser']['academic_level']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Occupation'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $ciuuser['Ciuuser']['occupation']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Occupation Description'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $ciuuser['Ciuuser']['occupation_description']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Ciuuserstate'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $ciuuser['Ciuuserstate']['name']; ?>
			&nbsp;
		</dd>
               
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Ciuusertype'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $ciuuser['Ciuusertype']['name']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Contact Name'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $ciuuser['Ciuuser']['contact_name']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Contact Telephone'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $ciuuser['Ciuuser']['contact_telephone']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Created'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $ciuuser['Ciuuser']['created']; ?>
			&nbsp;
		</dd>
<!--		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Isactive'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $ciuuser['Ciuuser']['isactive']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Ciustudenttype'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($ciuuser['Ciustudenttype']['name'], array('controller' => 'ciustudenttypes', 'action' => 'view', $ciuuser['Ciustudenttype']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Ciuteachertype Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $ciuuser['Ciuuser']['ciuteachertype_id']; ?>
			&nbsp;
		</dd>-->
	</dl>
</div>

<div class="related">
	<h3><?php __('Cursos');?></h3>
	<?php if (!empty($ciuuser['CiucourseCiustudent'])):?>
	<table class="zebra" cellpadding = "0" cellspacing = "0">
	<thead>
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Curso'); ?></th>
		<th><?php __('Estado'); ?></th>
		<th><?php __('Nota1'); ?></th>
		<th><?php __('Nota2'); ?></th>
		<th><?php __('Nota3'); ?></th>
		<th><?php __('Nota4'); ?></th>
		<th><?php __('Final'); ?></th>
	</tr>
	</thead>
	<?php
		$i = 0;
		foreach ($ciuuser['CiucourseCiustudent'] as $ciucourseCiustudent):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $ciucourseCiustudent['id'];?></td>
			<td><?php echo $ciucourseCiustudent['ciucourse_id'];?></td>
			<td><?php echo $ciucourseCiustudent['ciucurspersstate_id'];?></td>
			
			<td><?php echo $ciucourseCiustudent['score1'];?></td>
			<td><?php echo $ciucourseCiustudent['score2'];?></td>
			<td><?php echo $ciucourseCiustudent['score3'];?></td>
			<td><?php echo $ciucourseCiustudent['score4'];?></td>
			<td><?php echo $ciucourseCiustudent['total_score'];?></td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>
</div>

<!--
<div class="related">
	<h3><?php __('Related Ciucontracts');?></h3>
	<?php if (!empty($ciuuser['Ciucontract'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Contract Number'); ?></th>
		<th><?php __('Ciuuser Id'); ?></th>
		<th><?php __('Contract Value'); ?></th>
		<th><?php __('Start Date'); ?></th>
		<th><?php __('End Date'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($ciuuser['Ciucontract'] as $ciucontract):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $ciucontract['id'];?></td>
			<td><?php echo $ciucontract['contract_number'];?></td>
			<td><?php echo $ciucontract['ciuuser_id'];?></td>
			<td><?php echo $ciucontract['contract_value'];?></td>
			<td><?php echo $ciucontract['start_date'];?></td>
			<td><?php echo $ciucontract['end_date'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'ciucontracts', 'action' => 'view', $ciucontract['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'ciucontracts', 'action' => 'edit', $ciucontract['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'ciucontracts', 'action' => 'delete', $ciucontract['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $ciucontract['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Ciucontract', true), array('controller' => 'ciucontracts', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>

<div class="related">
	<h3><?php __('Cursos');?></h3>
	<?php if (!empty($ciuuser['Ciucourse'])):?>
	<table class="zebra" cellpadding = "0" cellspacing = "0">
	<thead>
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Ciulanguage Id'); ?></th>
		<th><?php __('Ciulevel Id'); ?></th>
		<th><?php __('Ciutimetable Id'); ?></th>
		<th><?php __('Ciuroom Id'); ?></th>
		<th><?php __('Ciuuser Id'); ?></th>
		<th><?php __('Ciucoursestate Id'); ?></th>
		<th><?php __('Ciuacademicperiod Id'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	</thead>
	<?php
		$i = 0;
		foreach ($ciuuser['Ciucourse'] as $ciucourse):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $ciucourse['id'];?></td>
			<td><?php echo $ciucourse['ciulanguage_id'];?></td>
			<td><?php echo $ciucourse['ciulevel_id'];?></td>
			<td><?php echo $ciucourse['ciutimetable_id'];?></td>
			<td><?php echo $ciucourse['ciuroom_id'];?></td>
			<td><?php echo $ciucourse['ciuuser_id'];?></td>
			<td><?php echo $ciucourse['ciucoursestate_id'];?></td>
			<td><?php echo $ciucourse['ciuacademicperiod_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'ciucourses', 'action' => 'view', $ciucourse['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'ciucourses', 'action' => 'edit', $ciucourse['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'ciucourses', 'action' => 'delete', $ciucourse['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $ciucourse['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Ciucourse', true), array('controller' => 'ciucourses', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
-->